package com.woniu.order.feign;

import com.woniu.common.utils.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "scss-server")
public interface EcssOrderFeign {
    @PostMapping("/addOrderFromZy")
    ResponseData<?> addOrderFromZy(@RequestBody String orderMessage);



    @PostMapping("/shouhouChangeOrderStatus")
    public boolean shouhouChangeOrderStatus(@RequestBody String orderId);

    @PostMapping("/quxiaoShouhouChangeOrderStatus")
    public boolean quxiaoShouhouChangeOrderStatus(@RequestBody String orderId);

    @GetMapping("/shouhuoFromZy")
    boolean shouhuoFromZy(@RequestParam("orderId") String orderId, @RequestParam("orderDetailId")String orderDetailId);
}
